/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="FERIADOS")
public class FeriadosProteu implements Serializable{

    @Id
    @Column(name="FER_ST_CODIGO")
    private String ferStCodigo;
    @Column(name="FER_ST_DESCRICAO")
    private String ferStDescricao;
    @Column(name="FER_DT_DATA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date ferDtData;
    @Column(name="FER_CH_FIXA")
    private String ferChFixa;
    @Column(name="FER_CH_NIVER")
    private String ferChNiver;
    @Column(name="FER_CH_DATA")
    private String ferChData;


    public String getFerChData() {
        return ferChData;
    }

    public void setFerChData(String ferChData) {
        this.ferChData = ferChData;
    }

    public String getFerChFixa() {
        return ferChFixa;
    }

    public void setFerChFixa(String ferChFixa) {
        this.ferChFixa = ferChFixa;
    }

    public String getFerChNiver() {
        return ferChNiver;
    }

    public void setFerChNiver(String ferChNiver) {
        this.ferChNiver = ferChNiver;
    }

    public Date getFerDtData() {
        return ferDtData;
    }

    public void setFerDtData(Date ferDtData) {
        this.ferDtData = ferDtData;
    }

    public String getFerStCodigo() {
        return ferStCodigo;
    }

    public void setFerStCodigo(String ferStCodigo) {
        this.ferStCodigo = ferStCodigo;
    }

    public String getFerStDescricao() {
        return ferStDescricao;
    }

    public void setFerStDescricao(String ferStDescricao) {
        this.ferStDescricao = ferStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final FeriadosProteu other = (FeriadosProteu) obj;
        if ((this.ferStCodigo == null) ? (other.ferStCodigo != null) : !this.ferStCodigo.equals(other.ferStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + (this.ferStCodigo != null ? this.ferStCodigo.hashCode() : 0);
        return hash;
    }



}
